<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:include="css :: css">

</head>
<link href="/js/jquery.icheck/skins/square/blue.css" rel="stylesheet">
<link href="/css/custom.css" rel="stylesheet">
<body style="overflow: hidden;opacity: 1">

<div id="cl-wrapper" style="padding-top: 0">
    <div class="container-fluid" id="pcont">
        <div class="cl-mcont">
            <div class="row">
                <div class="col-md-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>设置会员密价</h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <form id="quickSetting">
                                    <dl class="dl-horizontal">
                                        <dt>搜索会员名称：</dt>
                                        <dd>
                                            <div class="col-sm-6">
                                                <input class="form-control" type="text" name="userAccount"
                                                       id="userAccount"
                                                       placeholder="请输入会员编号">
                                            </div>
                                            <div class="col-sm-6"><span class="input-group-btn">
                                                    <button class="btn btn-primary" type="button"
                                                            id="searchUsers">搜索 </button>
                                                </span>
                                            </div>
                                        </dd>
                                        <dd>
                                            <div class="col-sm-12">
                                                <span style="color: red">多个会员编号，以英文逗号隔开。 </span>
                                            </div>
                                        </dd>
                                        <dt>
                                            <label
                                                    class="icheck" style="margin-right:10px; ">
                                                会员名称：
                                                <input type="checkbox" value="0" id="checkUserAll">全选
                                            </label>
                                        </dt>
                                        <dd>
                                            <div class="col-sm-6" id="userSet">
                                            </div>
                                        </dd>
                                        <dt>运营商：</dt>
                                        <dd>
                                            <div class="col-sm-6" id="typeSet">
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="1"> 移动
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="2"> 联通
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="3"> 电信
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="15"> 远特
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="16"> 迪信通
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="20"> 蜗牛
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="300"> 中石化
                                                </label>

                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="310"> 中石油
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="302"> 中石化无卡号
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="303"> 中石油无卡号
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="productTypes" type="checkbox" value="12001"> 京东E卡
                                                </label>
                                            </div>
                                        </dd>
                                        <dt>面值：<br>
                                            <div class="col-sm-6" style=" width: 92px;margin-left: 94px;"><label
                                                    class="icheck" style="margin-right:10px;">
                                                <input type="checkbox" value="0" id="checkAll">全选
                                            </label></div>
                                        </dt>
                                        <dd>

                                            <div class="col-sm-6" id="faceValueSet">
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="1"> 1
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="2"> 2
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="5">5
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="10">10
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="20">20
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="30">30
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="50">50
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="100">100
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="200">200
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="300">300
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="500">500
                                                </label>
                                                <label class="icheck" style="margin-right:10px;">
                                                    <input name="faces" type="checkbox" value="1000">1000
                                                </label>
                                            </div>
                                        </dd>
                                        <dt>地区：<br>
                                            <div class="col-sm-6" style=" width: 92px;margin-left: 94px;"><label
                                                    class="icheck" style="margin-right:10px; ">
                                                <input type="checkbox" value="0" id="checkAllArea">全选</label></div>
                                        </dt>
                                        <dd>
                                            <div class="col-sm-6" id="areaSet">
                                            </div>
                                        </dd>

                                        <dt>操作状态：</dt>
                                        <dd>
                                            <div class="col-sm-6">
                                                <select class="form-control " name="method" id="method"
                                                        onchange="reloadDiscount(this)">
                                                    <option value="1">新增</option>
                                                    <option value="0">修改</option>
                                                    <option value="4">删除</option>
                                                </select>
                                            </div>

                                        </dd>
                                        <dt>最小折扣：</dt>
                                        <dd>
                                            <div class="col-sm-6">
                                                <input type="text" class="form-control" name="minPrice"
                                                       id="minPrice" placeholder="必须在0.5~1之间">
                                            </div>
                                        </dd>
                                        <dt>最大折扣：</dt>
                                        <dd>
                                            <div class="col-sm-6">
                                                <input type="text" class="form-control" name="maxPrice"
                                                       id="maxPrice" placeholder="必须在0.5~1.1之间">
                                            </div>
                                        </dd>
                                        <dt id="xianyuPrice_id">闲鱼佣金比：</dt>
                                        <dd>
                                            <div class="col-sm-6">
                                                <input type="text" class="form-control" name="xianyuPrice"
                                                       id="xianyuPrice" placeholder="必须在0~1之间">
                                            </div>
                                        </dd>
                                    </dl>
                                    <div class="hr-line-dashed"></div>
                                    <div class=" col-md-4 col-md-offset-3">
                                        <button class="btn btn-info" type="button" id="formSubmit">提交设置</button>
                                    </div>
                                </form>
                            </div>
                        </div>

                        <div class="ibox-title">
                            <h5>密价克隆</h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <form id="cloneUserPriceForm" method="post" action="">
                                    &nbsp;&nbsp;&nbsp;克隆类型:
                                    <select class="selectpicker" title="运营商"
                                            id="productType"
                                            name="productType"
                                            data-live-search="true">
                                    </select>
                                    &nbsp;源会员账号:<input type="text" class="easyui-textbox" id="sourceUserAccount"
                                                 name="sourceUserAccount">
                                    目标会员账号:<input type="text" class="easyui-textbox" id="targetUserAccount"
                                                  name="targetUserAccount" style="width: 300px"/><span
                                        style="color: red">*可输入多个会员用“,”隔开</span>
                                    <button type="button" id="cloneId">提交</button>
                                </form>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<div th:include="js :: js"></div>
<script type="text/javascript" src="js/jquery.icheck/icheck.min.js"></script>
<script type="text/javascript" src="/js/pageJs/product/setUserPrice.js?deVersion=2020071002"></script>
<script>

    $('#checkAll').on('ifChecked', function (event) {
        $("#faceValueSet input").iCheck("check");
    });
    $('#checkAll').on('ifUnchecked', function (event) {
        $("#faceValueSet input").iCheck("uncheck");
    });
    $('#checkAllArea').on('ifChecked', function (event) {
        $("#areaSet input").iCheck("check");
    });
    $('#checkAllArea').on('ifUnchecked', function (event) {
        $("#areaSet input").iCheck("uncheck");
    });
    $('#checkUserAll').on('ifChecked', function (event) {
        $("#userSet input").iCheck("check");
    });
    $('#checkUserAll').on('ifUnchecked', function (event) {
        $("#userSet input").iCheck("uncheck");
    });
</script>
</body>
</html>
